package com.kaifamiao.inherit.child;

import com.kaifamiao.inherit.Animal;

public class Birds extends Animal {

    private String name;

    public Birds(String name) {
        super("禽");
        System.out.println( "Birds(String)");
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void main(String[] args) {
        Birds b = new Birds( "图图" );
        System.out.println( b.getType() );
        System.out.println( b.getName() );
        b.setType( "禽类" );
        System.out.println( b.getType() );
    }
}
